package com.lej.dataservice.club.bean.main.home


object HomeTag {
    const val tNew = 1
    const val tHot = 2
    const val tRare = 3
    const val tTop1 = 4
    const val tOfficial = 5
    const val tComing = 6
    const val tArtist = 7
}

object CardType {
    const val LIVE = 1//艺术家展馆
    const val WALL = 2//个人展馆
    const val BOOTH = 3//nft展台
    const val BANNER = 4//广告banner
}

data class HomeShowInfo(
    val type: Int,
    var liveInfo: LiveInfo? = null,//展馆
    var individualInfo: IndividualInfo? = null,//个人房间
    var boothInfo: BoothInfo? = null,//展台
    var bannerInfo: AdBannerInfo? = null,//广告banner
)

data class LiveInfo(
    val decUrl: String?,
    val head: String?,
    val houseId: Int,
    val nick: String?,
    val spaceName: String?,
    val authorDesc: String?,
    val type: Int,
    val liveState:String?, // 1为直播中
    val url: String?,
    var action: String?,//进行预览的时候播放视频链接
    val spaceTag:String?,
    var detail:SpaceDetail?, //详情介绍
) {
    fun isPreView() = houseId <= 0
    fun isLiving() = liveState == ""
}

data class SpaceDetail(val title:String?,val imgUrl:String?,val imgWidth:Int?,val imgHeight:Int?,val descList:List<SpaceDescItem>?)

data class SpaceDescItem(val itemTitle:String,val itemContent:String?)

data class IndividualInfo(val nftList: List<RoomNft>, val wall1: WallInfo?, val wall2: WallInfo?)

data class RoomNft(
    val name: String?,
    val nftId: Int,
    val number: Int,
    val price: Int,
    val desc: String?,
    val showType: Int,//显示类型
    val showUrl: String?,//显示url
    val tag: String,//标签类型
    val h: Int,
    val w: Int,

    val goodsId: Int,
    val shopType: String?,
    val shopId: Int,
    val isAvatar: Boolean
)

data class WallInfo(
    val head: String?,
    val houseId: Int,
    val houseName: String?,
    val nick: String?,
    val showPics: List<String>?,
    val showType: Int,
    val showUrl: String?,
    val tagName: String?,
    val tagType: String?, //标签类型
)
data class BoothInfo(val boothList: List<Booth>?, val boothType: Int)

data class Booth(
    val coverUrl: String?,
    val nftId: Int,
    val nftName: String?,
    val number: Int,
    val price: Int,
    val tagType: String, //标签类型
    val type: Int,
    val url: String?,
    val h: Int,
    val w: Int,
    val desc: String?,
    var isFirst: Boolean = false,
    val goodsId: Int,
    val shopType: String?,
    val shopId: Int,
)

data class AdBannerInfo(val banner: ADItem?, val sideBanner: ADItem?, val slogan: String?, )

data class ADItem(val type: Int, val url: String?, val action: String?)